<template>
  <div>
    <div class="search-container">
      <div class="search-wrapper">
        <div class="search-wrapper-left">
          <router-link to="/documentCenter" class="search-logo-wrapper">
            <a target="_blank" rel="noopener noreferrer">
              <img class="search-logo" src="https://b.yzcdn.cn/static/app-doc/img/revision-five/main-logo.png" alt="">
            </a>
          </router-link>
          <div class="search-entry-wrapper">
            <div class="zent-input-wrapper zent-input--size-normal" data-zv="9.0.0">
              <el-input v-model="input" placeholder="在文档中心搜索" type="text" class="zent-input"></el-input>
            </div>
            <el-button type="primary" class="zent-btn-primary zent-btn-large zent-btn left1">搜索</el-button>
          </div>
          <div class="search-keyword-wrapper">
            <span class="search-keyword-item">调试工具</span>
            <span class="search-keyword-item">保证金</span>
            <span class="search-keyword-item">授权</span>
            <span class="search-keyword-item">店铺类型说明</span>
          </div>
        </div>
        <div class="search-wrapper-right">
          <div class="userinfo-container">
            <div class="userinfo-operation-wrapper">
              <router-link to="/login">
                <el-button type="primary" class="zent-btn-primary zent-btn left">登录</el-button>
              </router-link>
              <router-link to="/registered">
                <el-button class="zent-btn right">注册</el-button>
              </router-link>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      input: ''
    }
  }
}
</script>

<style  lang="less" scoped>
* {
  font-family: Helvetica, Pingfang SC, Microsoft YaHei, STHeiti, Verdana, Arial, Tahoma, sans-serif;
  margin: 0;
  padding: 0;
}

.search-container {
  width: 100%;
  min-width: 1200px;
  position: relative;
  z-index: 998;
  background-color: #fff;

  .search-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
    height: 104px;
    margin: 0 auto;

    .search-wrapper-left {
      display: flex;
      align-items: center;

      .search-logo-wrapper {
        width: 163px;
        margin-right: 40px;

        .search-logo {
          height: 25px;
        }
      }

      .search-entry-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        margin-right: 16px;

        .zent-input-wrapper {
          width: 370px;
          height: 40px;
          max-height: 40px;

          .zent-input {

            border-top-right-radius: 0;
            border-bottom-right-radius: 0;

            span {
              width: 32px;
              height: 18px;
            }
          }

        }

        .left1 {
          background-color: #155bd4
        }

        .zent-btn {
          position: relative;
          left: -1px;
          width: 70px;
          height: 40px;
          padding: 0;
          border-top-left-radius: 0;
          border-bottom-left-radius: 0;
        }
      }

      .search-keyword-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        max-width: 400px;

        .search-keyword-item {
          margin-right: 12px;
          color: #323233;
          font-size: 12px;
          font-family: PingFangSC-Regular;
          line-height: 18px;
          cursor: pointer;
        }
      }
    }

  }
}

.userinfo-container {
  display: flex;
  align-items: center;

  .userinfo-operation-wrapper {
    display: flex;
    font-size: 14px;

    .left {
      width: 62px;
      height: 32px;
      background-color: #155bd4;
      border-radius: 0;
      text-align: center;
      display: inline-block;
      line-height: 30px;
      padding: 0 16px;
      border-radius: 2px;
      font-family: inherit;
      vertical-align: middle;
      box-sizing: border-box;

    }

    .right {

      width: 62px;
      height: 32px;
      border-radius: 0;
      text-align: center;
      display: inline-block;
      line-height: 30px;
      padding: 0 16px;
      border-radius: 2px;
      font-family: inherit;
      vertical-align: middle;
      margin-left: 16px;
      box-sizing: border-box;

    }

  }
}
</style>>
